<?php

require_once 'db.php';

class works extends db {

    public function select() {
        $this->connect();
        $query = "SELECT * FROM works LIMIT 0,10";
        $works = $this->query($query);
        return $works;
    }

}

?>